package com.net.xpay.common.dao.notification;

import com.net.xpay.common.domain.notification.Notification;
import com.net.xpay.common.enums.notification.NotificationModule;
import com.net.xpay.common.enums.notification.NotificationStatus;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@DataCommon
@Repository
public interface NotificationMapper extends PagedMapper<Long, Notification> {
    /**
     * 已开始未过期的通知
     */
    Notification findLastByModuleWithStatus(@Param("module") NotificationModule module, @Param("status") NotificationStatus status);
}
